import grails.test.*

class AccountControllerTests extends ControllerUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    /**
     * Tests the default response of show: redirect
     */
    void testShow() {
    	def controller = new AccountController()
		controller.show()
		assertEquals "/account/signup", controller.response.redirectedUrl
    }
    
    /**
     * Tests the signup action 
     */
    void testSignup() {
    	def controller = new AccountController()
		controller.signup()
		assertEquals "account", controller.response.contentAsString
    }
}
